package com.lson.MQ.rabbit.mapper;

import com.lson.MQ.rabbit.entity.Order;
import org.apache.ibatis.annotations.*;

@Mapper
public interface OrderMapper {

    @Insert("insert into order2 (id,status,content) values(#{id},#{status},#{content})")
//    @Options(keyProperty = "id",keyColumn = "id" )
    void insert(Order order);

    @Update("update order2 set status=#{status} where id=#{uuid}")
    void updateStatus(@Param("status") int status,@Param("uuid")String uuid);
}
